package com.example.service;

import com.example.domain.Book;

import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface BookService {
    List<Book> getAll();

    Book findbyid(Integer id);

    boolean insert(Book book);

    boolean update(Book book);

    boolean delete(Integer id);
}
